package com.ff.discounts.component.search

import android.content.Context
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter.base.BaseSingleItemAdapter
import com.ff.discounts.databinding.HeaderSearchBinding

/**
 * HeaderSearchBinding 传入布局 不用设置数据
 * @author: fufang
 * @date: 2023/10/25
 */
class SearchHeaderAdapter(private val binding:HeaderSearchBinding) :
    BaseSingleItemAdapter<Any, SearchHeaderAdapter.VH>() {

    class VH(val binding: HeaderSearchBinding):RecyclerView.ViewHolder(binding.root){
    }

    override fun onBindViewHolder(holder: SearchHeaderAdapter.VH, item: Any?) {

    }

    override fun onCreateViewHolder(
        context: Context,
        parent: ViewGroup,
        viewType: Int
    ): SearchHeaderAdapter.VH {
        return VH(binding)
    }

}